<?xml version="1.0" encoding="utf-8" ?>
<Mapping xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<Entity type="*" table="Entity" discriminator-field="Type" discriminator-value="*">
		<Id field="Id" >
			<Generator name="guid" />
		</Id>
		 <Attribute name="*" table="Attribute" field="Value" db-type="AnsiString" size="8000" parentField="FK_Entity" discriminator-field="Name"
                        discriminator-value="*" />
	
		<Reference name="*" entityChild="Entity" discriminator-field="Role">
			<Rule parentField="Id" childTable="Reference" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Entity" childField="Id" />
		</Reference>
	</Entity>
	
</Mapping>
